//PROJECT PAGE!!

import java.awt.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
import java.util.List;
import javax.swing.*;



import java.awt.event.*;

public class Projects extends JPanel implements MouseListener, MouseMotionListener{
	private Image background;
	private int goNext=0;
	
	
	public Projects(){
		HandleClass handler = new HandleClass();
		JButton but = new JButton("HELLO");
		but.addActionListener(handler);
		add(but);
		loadImages();
		
	    
		
	}
	
	 public void loadImages(){
	       try{
	           background = new ImageIcon("pics/stan_bg.png").getImage();
	          
	        } catch (Exception e) { }
	       
	       repaint();
	   }
	   
	   public void paintComponent(Graphics g){
	       super.paintComponent(g);
	       Graphics2D g2d = (Graphics2D) g;
	       g2d.drawImage(background, 0, 0, this);
	       
	   }
	   
	   public void setGoNext(int d){
		   goNext=1;
	   }
	   
	   public int getGoNext(){
		  return goNext; 
	   }
	   
	   public void Loopy(){
			while(goNext!=1)
				repaint();
			}
	   
	   private class HandleClass implements ActionListener{
			  public void actionPerformed(ActionEvent e){
				 System.out.println("HELLO WORLD!!");
			  }
		   }
	   
	   public void mouseClicked(MouseEvent me) {
		   	
	   }
	   public void mousePressed(MouseEvent me) {
	       
	   }
	   public void mouseReleased(MouseEvent me) {
	       
	   }
	   public void mouseDragged(MouseEvent me) {
	       
	   }
	   public void mouseMoved(MouseEvent me) {
	   
	   }    
	   public void mouseEntered(MouseEvent me) {
	       
	   }
	   public void mouseExited(MouseEvent me) {
	       
	   }
}
